{% extends "base.html" %}
{% import "bootstrap/wtf.html" as wtf %}

{% block title %}FastApp - 我的应用{% endblock %}

{% block page_content %}
<div class="page-header">
    <h1>我的应用</h1>
    <a href='/addApp' class="btn btn-primary">创建应用</a>
</div>
<div class="col-md-4">
	<ul>
		{% for userapp in userapps %}
			<div class="app">
				{% if userapp.get('f_app_type') == 1 %}
				<a href="/edit?app_id={{ userapp.get('f_app_id') }}&app_name={{ userapp.get('f_app_name') }}"><img src={{ userapp.get('f_app_logo_url') }} class="img-rounded app-img" height="60" width="60"></a>
				{% endif %}
				{% if userapp.get('f_app_type') == 0 %}
				<a href="/postlist?app_id={{ userapp.get('f_app_id') }}&app_name={{ userapp.get('f_app_name') }}"><img src={{ userapp.get('f_app_logo_url') }} class="img-rounded app-img" height="60" width="60"></a>
				{% endif %}
				<div class="app-info">
					<div class="app-name">{{ userapp.get('f_app_name') }}</div>
					{% if userapp.get('f_app_type') == 0 %}
						<div class="app-type">信息类</div>
					{% endif %}
					{% if userapp.get('f_app_type') == 1 %}
						<div class="app-type">商城类</div>
					{% endif %}
				</div>
			</div>
		{% endfor %}
	</ul>
</div>

{% endblock %}